package com.lhsy.djcloud.mapper;

import com.lhsy.djcloud.entity.NoticeMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangzw
 * @since 2020-09-24
 */
public interface NoticeMessageMapper extends BaseMapper<NoticeMessage> {

    List<NoticeMessage> selectUnReadMessage(@Param("userId") Integer userId, @Param("type")Integer type);
    List<NoticeMessage> selectUnReadMessageList(@Param("userId") Integer userId, @Param("types")List<Integer> types);
    List<NoticeMessage> selectMessage(@Param("userId")Integer userId,@Param("sendUserId")Integer sendUserId, @Param("type")Integer type,@Param("params") String params);

    List<NoticeMessage> selectMyMessage(@Param("userId")Integer userId, @Param("type") Integer type, @Param("params") String params);

    List<NoticeMessage> selectUnReadMessageBySend(@Param("userId")Integer userId, @Param("sendUserId")Integer sendUserId, @Param("type")Integer type);

    List<NoticeMessage> selectAllMessage(@Param("userId")Integer userId, @Param("type")Integer type);
}



